﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BookingSite.Models.Event>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Index</h2>

<% List<BookingSite.Models.Event> list = (List<BookingSite.Models.Event>) ViewData["listEvent"]; %>
<table>
    <tr>
        <td>id</td>
        <td>Hall</td>
        <td>Place</td>
        <td>Caption</td>
    </tr>
    <% foreach (BookingSite.Models.Event item in list)
       { %>
       <tr valign="top">
          <td><%= item.id %></td>
          <td><%= item.idHall %></td>
          <td><%= item.idPlace %></td>
          <td><%= item.caption %></td>
       </tr>
    <% } %>
</table>

</asp:Content>
